package main
import(
	"fmt"
)

//定义一个结构体
type Teacher struct {
  Age int
}

type Student struct {
  Age int
}

type Stu Student
func main(){
  var t  Teacher = Teacher{33}
  var s  Student = Student{22}
  s = Student(t)//转换格式
  fmt.Println(t) //默认{ 0 }
  fmt.Println(s)
  var s1 Student = Student{22}
  var s2 Stu = Stu{23}
  s1 = Student(s2)
  fmt.Println(s1)
  fmt.Println(s2)


}
